<script>
	$(document).ready(function(){
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
		$('#kd_kampus').change(function(){
			$('#kd_gedung').load(base_url+'prosedur/getGedungbyKampus/'+$('#kd_kampus').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px;">
	<div class="fitem" >
		<label style="width:100px">Kode </label>:
		<input name="kd_ruang" size="15" required="true" value="<?=$kd_ruang?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama Ruang</label>:
		<input name="Nama" size="30" required="true" value="<?=$Nama?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Kampus </label>:
		<select id="kd_kampus" name="kd_kampus" style="width:200px;">
			<?=$this->mdl_prosedur->OptionKampus(array('value'=>$kd_kampus));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Gedung </label>:
		<select id="kd_gedung" name="kd_gedung" style="width:200px;">
			<?=$this->mdl_prosedur->OptionGedung(array('value'=>$kd_gedung));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Lantai </label>:
		<input name="Lantai" size="15" required="true" value="<?=$Lantai?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Fakultas </label>:
			<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
					<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$kd_fakultas));?>
			</select>
	</div>	
	<div class="fitem" >
		<label style="width:100px">Kapasitas </label>:
		<input name="Kapasitas" size="20" required="true" value="<?=$Kapasitas?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Kapasitas Ujian </label>:
		<input name="KapasitasUjian" size="20" required="true" value="<?=$KapasitasUjian?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Keterangan </label>:
		<input name="Keterangan" size="20" required="true" value="<?=$Keterangan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Status</label>:		
		<input type="checkbox" name="status" <?=$status=='A'?'checked':''?>/> Aktif
	</div>
</form>
	

